﻿<%@ Page Title="" Language="C#" MasterPageFile="~/FreeBooks.master" AutoEventWireup="true" CodeFile="Categories.aspx.cs" Inherits="Categories" %>

<%@ Register src="UserControls/EBookList.ascx" tagname="EBookList" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div id="body">
<h4>Categories</h4>
<uc1:EBookList ID="EBookList1" runat="server" >
    <ItemTemplate>
        <div><a href='CategoryWise.aspx?CId=<%#DataBinder.Eval(Container.DataItem,"Id") %>'><%#DataBinder.Eval(Container.DataItem,"CategoryName") %></a></div>
    </ItemTemplate>
    <AlternateItemTemplate>
        <div><a href='CategoryWise.aspx?CId=<%#DataBinder.Eval(Container.DataItem,"Id") %>'><%#DataBinder.Eval(Container.DataItem,"CategoryName") %></a></div>
    </AlternateItemTemplate>
    <FooterTemplate>
    </FooterTemplate>
</uc1:EBookList>

<h4>Authors</h4>
<uc1:EBookList ID="EBookList2" runat="server" >
    <ItemTemplate>
        <div><a href='CategoryWise.aspx?AId=<%#DataBinder.Eval(Container.DataItem,"AuthorName") %>'><%#DataBinder.Eval(Container.DataItem,"AuthorName") %></a></div>
    </ItemTemplate>
    <AlternateItemTemplate>
        <div><a href='CategoryWise.aspx?AId=<%#DataBinder.Eval(Container.DataItem,"AuthorName") %>'><%#DataBinder.Eval(Container.DataItem,"AuthorName") %></a></div>
    </AlternateItemTemplate>
    <FooterTemplate>
    </FooterTemplate>
</uc1:EBookList>

<h4>Publishers</h4>
<uc1:EBookList ID="EBookList3" runat="server" >
    <ItemTemplate>
        <div><a href='CategoryWise.aspx?PId=<%#DataBinder.Eval(Container.DataItem, "Id")%>'><%#DataBinder.Eval(Container.DataItem, "PublisherName")%></a></div>
    </ItemTemplate>
    <AlternateItemTemplate>
        <div><a href='CategoryWise.aspx?PId=<%#DataBinder.Eval(Container.DataItem, "Id")%>'><%#DataBinder.Eval(Container.DataItem, "PublisherName")%></a></div>
    </AlternateItemTemplate>
    <FooterTemplate>
    </FooterTemplate>
</uc1:EBookList>
</div>
</asp:Content>

